import com.Hello;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Z-C-Y on 2018-02-01.
 */
public class Demo {
    @Test
    public void aa(){
        BeanFactory f = new ClassPathXmlApplicationContext("applicationContext.xml");
        Date d = f.getBean(Date.class);
        System.out.println(d.toLocaleString());
        System.out.println(f.getBean(Hello.class).getPf(9));
    }

}